// pages/LiveStreaming/LiveStreaming.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    currentTab: 'upcoming' ,// 默认选中“即将开播”

    liveList: [
        {
          id: 1,
          cover: 'https://ts1.tc.mm.bing.net/th/id/R-C.c9d773a7530d5e1f09b749039076d663?rik=sbY4%2fkVL2bbgBQ&riu=http%3a%2f%2fimgbdb3.bendibao.com%2fcqbdb%2ftour%2f20209%2f10%2f2020910110738_52769.png&ehk=L%2fc4yhEY9xAc8GhMMcijJWfGftiiynwsWfRdT6FgKEc%3d&risl=&pid=ImgRaw&r=0', // 本地/CDN 图片路径
          title: '国内旅游推荐',
          tags: ['双倍积分', '下单礼'],
          timeText: '明天09:00开播',
          buttonText: '开播提醒',
          score: 100
        },
        {
          id: 2,
          cover: 'https://ts1.tc.mm.bing.net/th/id/R-C.ada0c3cfff04818f6de434bf8c5b0b5e?rik=BaqeBjS8GKwY4A&riu=http%3a%2f%2fn.sinaimg.cn%2fsinakd20200425ac%2f265%2fw640h425%2f20200425%2fb738-isuiksm8462675.jpg&ehk=7EI9de6o%2btfYQvUMVabB8oVASE1czrSvtIfK9gAB%2fv0%3d&risl=&pid=ImgRaw&r=0',
          title: '周边游+私家团',
          tags: ['精品小团', '私人定制', '时间自由'],
          timeText: '今天15:00开播',
          buttonText: '预约直播',
          score: 10
        },
        {
          id: 3,
          cover: 'https://www.evoote.com/wp-content/uploads/2023/06/20230610090247-64843c375a69b.jpg',
          title: '世界环游',
          tags: ['直播专属', '限时秒杀', '过期自动退'],
          timeText: '今天15:30开播',
          buttonText: '预约直播',
          score: 10
        }
      ],
      // 列表数据，每个对象代表一个旅游产品
    travelItems: [
        {
          id: 1,
          image: 'https://staticfile.badazhou.com/20200710/05389e692a242c11d5a61b79a470cd0f.jpg', // 本地图片路径，需提前放置在项目的images目录；也可填网络图片地址
          title: '3天2晚（含2早1正）丨扬州凤凰岛逸扬温泉度假村落',
          tags: ['2人起订', '可携宠物'],
          timeText: '今天9:30开播',
          buttonText: '预约直播',
          score: 10,
          price: 499,
          priceDesc: '起'
        },
        {
          id: 2,
          image: 'https://ts1.tc.mm.bing.net/th/id/R-C.31ec4762b2ad9232fee1dcc17e3f211c?rik=lWaFhVh3XZmaTg&riu=http%3a%2f%2fwww.eyeyoou.com%2fphoto%2ftHotel800_600%2fIFB0AhDGak.jpg.html&ehk=xQ9wVQX6Uzby2g9D7xoWD7wxFJDt7pEJ9idzgZgjB%2bk%3d&risl=&pid=ImgRaw&r=0',
          title: '2天1晚（含1早1正）丨苏州丽斯珀酒店',
          tags: ['2人起订', '地铁直达'],
          timeText: '今天8:00开播',
          buttonText: '预约直播',
          score: 10,
          price: 299,
          priceDesc: '起'
        },
        {
          id: 3,
          image: 'https://ts4.tc.mm.bing.net/th/id/OIP-C.JZJ9V63PtvoTczE_t-L-swHaFj?rs=1&pid=ImgDetMain&o=7&rm=3',
          title: '纯玩无购物丨6日游丨马来西亚仙本那',
          tags: ['自然风光', '休闲度假'],
          timeText: '今天13:30开播',
          buttonText: '预约直播',
          score: 10,
          price: 6999,
          priceDesc: '起'
        },
        {
          id: 4,
          image: 'https://ts3.tc.mm.bing.net/th/id/OIP-C.kywAK3D-7qDHYersFACNAQHaE6?rs=1&pid=ImgDetMain&o=7&rm=3',
          title: '上海波特曼丽思卡尔顿酒店-城中食野·田园主题单人自助午餐',
          tags: [], // 若没有标签可传空数组
          timeText: '今天16:30开播',
          buttonText: '预约直播',
          score: 10,
          price: 199,
          priceDesc: '起'
        }
      ]

  },
  // Tab 切换方法
  switchTab(e) {
    const tab = e.currentTarget.dataset.tab;
    this.setData({
      currentTab: tab
    });
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})